<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:url('Collection/index')}">采集列表</a></li>
        <li class="active"><a href="javascript:;">添加采集</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Collection/post')}">
        <div class="form-group">
            <label for="input-source" class="col-sm-2 control-label"><span class="form-required">*</span>文章来源</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-source" name="source">
            </div>
        </div>
        <div class="form-group">
            <label for="input-title" class="col-sm-2 control-label"><span class="form-required">*</span>标识名称</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-title" name="title">
            </div>
        </div>
        <div class="form-group">
            <label for="input-url" class="col-sm-2 control-label"><span class="form-required">*</span>采集地址</label>
            <div class="col-md-6 col-sm-6">
                <input type="text" class="form-control" id="input-url" name="url">
            </div>
        </div>
        <div class="form-group">
            <label for="input-url_code" class="col-sm-2 control-label"><span class="form-required">*</span>目标网址编码</label>
            <label class="radio-inline">
                <input type="radio" name="url_code" id="inlineRadio1" value="utf-8"> utf-8
            </label>
            <label class="radio-inline">
                <input type="radio" name="url_code" id="inlineRadio2" value="gb2312"> gb2312
            </label>

        </div>
        <div class="form-group">
            <label for="" class="col-sm-2 control-label"><span class="form-required">*</span>开始页码</label>
            <div class="col-md-1 col-sm-4">
                <input type="text" class="form-control"  name="start_pages" value="1" >
            </div>
            <label for="" class="col-sm-2 control-label"><span class="form-required">*</span>结束页码</label>
            <div class="col-md-1 col-sm-4">
                <input type="text" class="form-control"  name="end_pages" value="1">
            </div>
        </div>
        <div class="form-group">
            <label for="input-add_pages" class="col-sm-2 control-label"><span class="form-required">*</span>每页递增</label>
            <div class="col-md-1 col-sm-2">
                <input type="text" class="form-control"  name="add_pages" value="1">
            </div>
        </div>
        <hr>
        <h3><b>列表页获取配置</b></h3>
        <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>匹配网址</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="match_url" value="">
            </div>
        </div>
        <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>标题过滤规则</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="title_rule"></textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>开始位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea  class="form-control"  name="code[start_pos]" value=""></textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>结束位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea  class="form-control"  name="end_pos" value=""></textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>对区域网址必须包含</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="must_character" value="">
            </div>
        </div>
        <hr>
        <h3><b>内容配置</b></h3>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容获取预览网址</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control"  name="pre_url" value="">
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容开始位置为标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="content_start_pos" value=""></textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 control-label"><span class="form-required">*</span>内容结束位置唯一标识</label>
            <div class="col-md-6 col-sm-10">
                <textarea class="form-control"  name="content_end_pos" value=""></textarea>
            </div>
        </div>
         <div class="form-group">
            <label for="input-user_email" class="col-sm-2 col-md-6 control-label"><span class="form-required">*</span>过滤规则</label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="1"> a
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="2">javascript
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="3"><！--()-->
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="4">table
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="5">style
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="6">img
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="7">Object
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="8">embed
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="9">iframe
             </label>
        <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="10">param
             </label>
        <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="11"><.div
             </label>
             <label class="radio-inline">
                 <input type="checkbox" name="filter_rule[]"  value="12">div.>
             </label>
        </div>



        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">提交</button>
            </div>
        </div>
    </form>
</div>

<script src="__STATIC__/js/admin.js"></script>
</body>
</html>